package com.buptse.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Information {
    private Integer id;

    private String code;

    private String location;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dating;

    private String source;

    private String carrier;

    private String directory;

    private String indexing;

    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location == null ? null : location.trim();
    }

    public Date getDating() {
        return dating;
    }

    public void setDating(Date dating) {
        this.dating = dating;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getCarrier() {
        return carrier;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier == null ? null : carrier.trim();
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory == null ? null : directory.trim();
    }

    public String getIndexing() {
        return indexing;
    }

    public void setIndexing(String indexing) {
        this.indexing = indexing == null ? null : indexing.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Information() {
    }

    public Information(Integer id, String code, String location, Date dating, String source, String carrier, String directory, String indexing, String description) {
        this.id = id;
        this.code = code;
        this.location = location;
        this.dating = dating;
        this.source = source;
        this.carrier = carrier;
        this.directory = directory;
        this.indexing = indexing;
        this.description = description;
    }

    @Override
    public String toString() {
        return "Information{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", location='" + location + '\'' +
                ", dating=" + dating +
                ", source='" + source + '\'' +
                ", carrier='" + carrier + '\'' +
                ", directory='" + directory + '\'' +
                ", indexing='" + indexing + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}